home *** CD-ROM | disk | FTP | other *** search
- Path: news.microsoft.com!news
- From: a-cnadc@microsoft.com (Dann Corbit)
- Newsgroups: comp.lang.c
- Subject: Re: Can main() function be called?
- Date: 5 Feb 1996 23:53:40 GMT
- Organization: Microsoft Corporation
- Message-ID: <4f65a4$b8k@news.microsoft.com>
- References: <823183263.118@fountain.demon.co.uk> <4f1mv0$2fd@cloner4.netcom.com>
- NNTP-Posting-Host: 157.57.171.202
- Mime-Version: 1.0
- X-Newsreader: WinVN 0.93.14
-
- In article <4f1mv0$2fd@cloner4.netcom.com>, rozen@ix.netcom.com says...
- >
- >I think that it cannot be done, I see no reasonalbe way how main()
- >could be called more than once.
- >
- >
- > What is your thoughts on this?
- >
- You would certainly have to be careful. This is the source of a
- famous recursion bug:
-
- int main()
- {
- main();
- }
-
- This is sure to crash in a heinous way on any system where it can
- be compiled.
- --
- The opinions expressed in this message are my own personal views
- and do not reflect the official views of Microsoft Corporation.
-
-